<include file="Goods:leftmenu" />

<div class="content-right fl">
 
    <h1 class="content-right-title">添加/编辑商品分类</h1>
    
	<form id="form" aciton="" method="post" enctype="multipart/form-data">
       
		<div class="formitems">  
			<label class="fi-name"><span class="colorRed">*</span>分类名称：</label>
			<div class="form-controls">
				<input type="text" class="input xlarge" name="gtype_name" value="<?php echo $data['gtype_name'];?>">
				<input type="hidden"  name="gtype_id" value="<?php echo $data['gtype_id'];?>">
				<span class="fi-help-text">分类名称</span>
			</div>
		</div>
		
		<div class="formitems">  
			<label class="fi-name"><span class="colorRed">*</span>排序：</label>
			<div class="form-controls">
				<input type="text" class="input xlarge" name="gtype_ord" value="<?php echo $data['gtype_ord'];?>">
				<span class="fi-help-text">数字越大越靠后</span>
			</div>
		</div>
		
		
    <div class="formitems">
        <label class="fi-name">图片：</label>
	    <div class="form-controls pdt5 j-imglistPanel">

    <div id="uploadPic">
      <ul id="uploadlist">
	        <li>
	          <div class="displayimg"><img  style="max-height:150px;" src="<?php echo C("UPYUN_DOMAIN");?><?php echo $data['gtype_icon'];?>!/fw/640" onerror="javascript:this.src='__STATIC__admin/images/error.png';"/></div>
	        </li>
      </ul>
      <div style="clear:both;"></div>
    </div>
	        <span class="fi-help-text">建议图片尺寸为640px * 300px</span>
	    </div>
    </div>
    
    <div class="formitems">
        <label class="fi-name">选择图片上传：</label>
        <div class="form-controls">
            <input type="file" class="input" name="pic" value="上传">
            <span class="fi-help-text"></span>
        </div>
    </div>
		

		<div class="mgl120">
			<a href="javascript:$('#form').submit();" class="btn btn-primary j-add">保 存</a>
		</div>
	</form>

</div>